package com.berwin.caper.entity;

import java.io.File;

public class Tag {

    private String path;

    public Tag(String path) {
        this.path = path;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public boolean isDirectory() {
        File file = new File(this.path);
        return file.isDirectory();
    }

    public String getName() {
        File file = new File(this.path);
        return file.getName();
    }
}
